import request from '@/utils/request'

// 查询颜色类型列表
export function listWpWallpaperColor(query) {
  return request({
    url: '/module/wpWallpaperColor/list',
    method: 'get',
    params: query
  })
}

// 查询颜色类型详细
export function getWpWallpaperColor(id) {
  return request({
    url: '/module/wpWallpaperColor/' + id,
    method: 'get'
  })
}

// 新增颜色类型
export function addWpWallpaperColor(data) {
  return request({
    url: '/module/wpWallpaperColor',
    method: 'post',
    data: data
  })
}

// 修改颜色类型
export function updateWpWallpaperColor(data) {
  return request({
    url: '/module/wpWallpaperColor',
    method: 'put',
    data: data
  })
}

// 删除颜色类型
export function delWpWallpaperColor(id) {
  return request({
    url: '/module/wpWallpaperColor/' + id,
    method: 'delete'
  })
}
